package cn.xiongxf.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 将yml配置文件中的属性封装成对像
 */
@Component  // 交给IOC容器控制
@Data
@ConfigurationProperties(prefix = "skcc.smscode")  // 前缀必须小写
public class SmsVerifyCodeProperties {
    private Integer smsCodeLength;
    private Long resendTime;
    private Integer expireTime;
    private String title;
    private String content;
}
